<html>
 <head></head>
 <body>
  <div class="wrap">
   <div class="container">
    <div class="row">
     <div id="secondary" class="col-md-2">
      <nav class="list-group mt30">
       <a href="{:U('home/User/userinfo')}" class="list-group-item active">个人资料</a>
       <a href="{:U('home/User/faceupload')}" class="list-group-item">头像上传<i style="line-height: 20px;font-size: 12px;color: #999;" class="pull-right fa fa-external-link-square"></i></a>
       <a href="{:U('home/User/useremail')}" class="list-group-item">Email 地址</a>
       <a href="{:U('home/user/userpassword')}" class="list-group-item">密码修改</a>
       <a href="/user/settings?tab=oauth" class="list-group-item">第三方账号</a>
      </nav>
      <nav class="list-group mt30">
       <a href="/user/settings?tab=notify" class="list-group-item">通知和私信</a>
       <a href="/user/settings?tab=card" class="list-group-item">个性名片</a>
       <a href="/user/settings?tab=block" class="list-group-item">屏蔽名单</a>
       <a href="/user/settings?tab=lab" class="list-group-item">实验室功能</a>
      </nav>
     </div>
     <!-- end #secondary -->
     <div id="main" class="settings col-md-10 form-horizontal">
      <h2 class="h3 mt30 post-title">个人资料</h2>
      <div class="row mt30">
       <div class="col-md-3 col-md-push-9">
        
       </div>
       <div class="col-md-8 col-md-pull-3">
        <form action="{:U('Home/User/update')}" method="post">
           <input type="hidden" name="id" value="{$maninfo.id}">
           <div class="form-group">
            <label for="name" class="required control-label col-sm-3">用户名</label>
            <div class="col-sm-9">
             <input name="username" type="text" maxlength="32" placeholder="用户名唯一" class="form-control" value="{$maninfo['username']}" required="" />
             <span class="help-block mb0">用户名 90 天内只能修改一次</span>
            </div>
           </div>
           <div class="form-group">
            <label for="setting-slug" class="required control-label col-sm-3">个性网址</label>
            <div class="col-sm-9">
             <input name="site" type="text" maxlength="32" id="setting-slug" placeholder="个性网址" data-do="checkUserSlug" class="form-control setting-slug" value="{$maninfo.site}" required="" />
             <code class="input-desc input-preview"> segmentfault.com/u/<strong class="preview">huangzhenjiangvip</strong></code>
             <span class="error--slug ml10 hide">已存在</span>
             <span class="help-block mb0">个性网址 90 天内只能修改一次</span>
            </div>
           </div>
           <div class="form-group">
            <label class="control-label col-sm-3">性别</label>
            <div class="col-sm-9">
             <label class="radio-inline">
              <input name="sex" type="radio" id="sex-none" value="0" <if condition="$maninfo['sex'] eq 0">checked=""</if> /> 保密</label>
             <label class="radio-inline"><input name="sex" type="radio" id="sex-male" value="1" <if condition="$maninfo['sex'] eq 1">checked=""</if> /> 男</label>
             <label class="radio-inline"><input name="sex" type="radio" id="sex-female" value="2" <if condition="$maninfo['sex'] eq 2">checked=""</if> /> 女</label>
            </div>
           </div>
           <div class="form-group">
            <label for="setting-birthday" class="control-label col-sm-3">生日</label>
            <div class="col-sm-9">
             <input name="birthday" id="setting-birthday" type="text" placeholder="格式 YYYY-MM-DD" value="{$maninfo['birthday']}" class="form-control" />
            </div>
           </div>
           <div class="form-group">
            <label for="setting-city" class="control-label col-sm-3">现居城市</label>
            <div class="col-sm-9">
             
             <div class="sf-typeHelper">
              <input type="text" data-role="sf_typeHelper-input" class="sf-typeHelper-input" placeholder="如：杭州，国外城市可填 “海外”" style="width: 16em;" name="city" value="{$maninfo['city']}" />
              <ul class="sf-typeHelper-list dropdown-menu" style="display: none;"></ul>
             </div>
            </div>
           </div>
           <div class="form-group">
            <label for="setting-address" class="control-label col-sm-3">通讯地址</label>
            <div class="col-sm-9">
             <input name="addr" id="setting-address" type="text" maxlength="32" placeholder="详细通讯地址" class="form-control" value="{$maninfo['addr']}" />
             <span class="help-block">此地址将用于寄送纪念品以及活动报名使用，不会公开给第三方</span>
            </div>
           </div>
           <div class="form-group">
            <label for="setting-homepage" class="control-label col-sm-3">个人网站</label>
            <div class="col-sm-9">
             <input name="psite" id="setting-homepage" type="text" placeholder="http://example.com" value="{$maninfo['psite']}" class="form-control mono" />
            </div>
           </div>
           <div class="form-group">
            <label for="setting-description" class="control-label col-sm-3">自我简介</label>
            <div class="col-sm-9">
             <textarea name="introduce" id="setting-description" class="form-control mono" rows="6">{$maninfo['introduce']}</textarea>
            </div>
           </div>
           <div class="form-action row">
            <div class="col-sm-offset-3 col-sm-9">
           
           <button class="btn btn-xl btn-primary profile-sub" type="submit">提交</button>
          </div>
         </div>
        </form>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
</html>